x86/mm: switch to new APIs in map_pages_to_xen
authorWei Liu <wei.liu2@citrix.com>
Thu, 22 Apr 2021 12:12:51 +0000 (14:12 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Apr 2021 12:12:51 +0000 (14:12 +0200)
commit4b5b08314ebc8146bfc4c2f8e356f1423a2b70ed
treebd4c4427f27dbb762135989f50b7e9457e141c01
parent4215992594b66e3f37ea776e71808987589c102a
x86/mm: switch to new APIs in map_pages_to_xen

Page tables allocated in that function should be mapped and unmapped
now.

Take the opportunity to avoid a potential double map in
map_pages_to_xen() by initialising pl1e to NULL and only map it if it
was not mapped earlier.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Hongyan Xia <hongyxia@amazon.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm.c